class TipItem extends zysx.BaseComponent{
	private content:eui.Group;
	private mess:eui.Label;
	public constructor(data?) {
		super(data);
		this.skinName = "TipSkin";
	}
	public onOpen(data?):void{
		super.onOpen(data);
		this.width = zysx.StageMgr.stageWidth;
		this.y = zysx.StageMgr.stageHeight / 2;
		this.x = 0;
		this.mess.text = this.data.mess;
		this.mess.textColor = 0xffffff;
		egret.callLater(()=>{
			this.content.width = this.mess.width + 80;
		},this);
		egret.Tween.removeTweens(this);
		egret.Tween.get(this).to({y: zysx.StageMgr.stageHeight / 3},300).wait(1000).call(this.onClose,this);
	}
	public clear():void{
		this.mess.text = "";
		this.mess.width = 0;
		this.content.width = 0;
	}
	public onClose():void{
		super.onClose();
		this.clear();
		zysx.LayerMgr.ins.circleTip(this);
	}
}